package com.qulai.amazon_us.service.amazon_us.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qulai.amazon_us.mapper.amazon_us.AmazonUsTagMapper;
import com.qulai.amazon_us.domain.amazon_us.AmazonUsTag;
import com.qulai.amazon_us.service.amazon_us.IAmazonUsTagService;

/**
 * 商品标签Service业务层处理
 * 
 * @author hunan
 * @date 2025-01-05
 */
@Service
public class AmazonUsTagServiceImpl implements IAmazonUsTagService 
{
    @Autowired
    private AmazonUsTagMapper amazonUsTagMapper;

    /**
     * 查询商品标签
     * 
     * @param id 商品标签主键
     * @return 商品标签
     */
    @Override
    public AmazonUsTag selectAmazonUsTagById(Long id)
    {
        return amazonUsTagMapper.selectAmazonUsTagById(id);
    }

    /**
     * 查询商品标签列表
     * 
     * @param amazonUsTag 商品标签
     * @return 商品标签
     */
    @Override
    public List<AmazonUsTag> selectAmazonUsTagList(AmazonUsTag amazonUsTag)
    {
        return amazonUsTagMapper.selectAmazonUsTagList(amazonUsTag);
    }

    /**
     * 新增商品标签
     * 
     * @param amazonUsTag 商品标签
     * @return 结果
     */
    @Override
    public int insertAmazonUsTag(AmazonUsTag amazonUsTag)
    {
        return amazonUsTagMapper.insertAmazonUsTag(amazonUsTag);
    }

    /**
     * 修改商品标签
     * 
     * @param amazonUsTag 商品标签
     * @return 结果
     */
    @Override
    public int updateAmazonUsTag(AmazonUsTag amazonUsTag)
    {
        return amazonUsTagMapper.updateAmazonUsTag(amazonUsTag);
    }

    /**
     * 批量删除商品标签
     * 
     * @param ids 需要删除的商品标签主键
     * @return 结果
     */
    @Override
    public int deleteAmazonUsTagByIds(Long[] ids)
    {
        return amazonUsTagMapper.deleteAmazonUsTagByIds(ids);
    }

    /**
     * 删除商品标签信息
     * 
     * @param id 商品标签主键
     * @return 结果
     */
    @Override
    public int deleteAmazonUsTagById(Long id)
    {
        return amazonUsTagMapper.deleteAmazonUsTagById(id);
    }
}
